let { form, $, table, layer } = layui;
export default class Search{
    constructor(){
        this.render();
        this.handle()
    }
    render(){
        let   template=`
        
        `;
    }
    handle(){
        let data = form.val('search');
        console.log(data);
        table.reload("infosTable", { //渲染在表格上，自带AJAX，不用接收成功
            where: {  //相当于data传送数据
                type: data.type,
                value: data.value, 
                startDate: data.startDate,
                endDate: data.endDate,  //text是文本值  value
                current:1,
                pageSize:5,
                
            }
        })
    }
}